﻿<UserControl
    x:Class="TopGroup.MySharePoint.SettingsUserControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:TopGroup.MySharePoint"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignWidth="600" Height="425.373">

    <StackPanel Margin="0,0,0,-503" Height="928" VerticalAlignment="Top" HorizontalAlignment="Left" Width="600">
        <TextBlock Text="My SharePoint" FontFamily="Segoe UI" FontWeight="SemiLight" FontSize="26.667" />
        <TextBlock Text="Url Site Collection" FontFamily="Segoe UI" FontWeight="SemiLight" FontSize="18" />
        <TextBox x:Name="url" BorderBrush="Black" HorizontalAlignment="Left" Width="270" Text="" />
        <TextBlock Text="Login" FontFamily="Segoe UI" FontWeight="SemiLight" FontSize="18" />
        <TextBox x:Name="login" BorderBrush="Black" HorizontalAlignment="Left" Width="270" Text=""/>
        <TextBlock Text="Password" FontFamily="Segoe UI" FontWeight="SemiLight" FontSize="18" />
        <PasswordBox x:Name="password" BorderBrush="Black" HorizontalAlignment="Left" Width="270" Password=""/>
        <TextBlock Text="Domain" FontFamily="Segoe UI" FontWeight="SemiLight" FontSize="18" />
        <TextBox x:Name="dominio" BorderBrush="Black" HorizontalAlignment="Left" Width="270" Text=""/>
        <TextBlock Text="List Name" FontFamily="Segoe UI" FontWeight="SemiLight" FontSize="18" />
        <TextBox x:Name="listName" BorderBrush="Black" HorizontalAlignment="Left" Width="270" Text=""/>
        <TextBlock Text="Number of Contacts" FontFamily="Segoe UI" FontWeight="SemiLight" FontSize="18" />
        <TextBox x:Name="contacts" BorderBrush="Black" HorizontalAlignment="Left" Width="270" Text="10"/>
        <Button x:Name="Actualizar" Content="Update" Click="Actualizar_Click" Background="#FFB6ABAB" Margin="-2,0,519,0" HorizontalAlignment="Right" Width="83" >

            <Button.Resources>

                <Style x:Key="ButtonStyle" TargetType="Button">

                    <Setter Property="Background" Value="{StaticResource ButtonBackgroundThemeBrush}"/>

                    <Setter Property="Foreground" Value="{StaticResource ButtonForegroundThemeBrush}"/>

                    <Setter Property="BorderBrush" Value="{StaticResource ButtonBorderThemeBrush}"/>

                    <Setter Property="BorderThickness" Value="{StaticResource ButtonBorderThemeThickness}"/>

                    <Setter Property="Padding" Value="12,4,12,4"/>

                    <Setter Property="HorizontalAlignment" Value="Left"/>

                    <Setter Property="VerticalAlignment" Value="Center"/>

                    <Setter Property="FontFamily" Value="{StaticResource ContentControlThemeFontFamily}"/>

                    <Setter Property="FontWeight" Value="SemiBold"/>

                    <Setter Property="FontSize" Value="{StaticResource ControlContentThemeFontSize}"/>

                    <Setter Property="Template">

                        <Setter.Value>

                            <ControlTemplate TargetType="Button">

                                <Grid>

                                    <VisualStateManager.VisualStateGroups>

                                        <VisualStateGroup x:Name="CommonStates">

                                            <VisualState x:Name="Normal"/>

                                            <VisualState x:Name="PointerOver">

                                                <Storyboard>

                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border">

                                                        <DiscreteObjectKeyFrame KeyTime="0" Value="Black"/>

                                                    </ObjectAnimationUsingKeyFrames>

                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">

                                                        <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonPointerOverForegroundThemeBrush}"/>

                                                    </ObjectAnimationUsingKeyFrames>

                                                </Storyboard>

                                            </VisualState>

                                            <VisualState x:Name="Pressed">

                                                <Storyboard>

                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border">

                                                        <DiscreteObjectKeyFrame KeyTime="0" Value="#FFB6ABAB"/>

                                                    </ObjectAnimationUsingKeyFrames>

                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">

                                                        <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonPressedForegroundThemeBrush}"/>

                                                    </ObjectAnimationUsingKeyFrames>

                                                </Storyboard>

                                            </VisualState>

                                            <VisualState x:Name="Disabled">

                                                <Storyboard>

                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border">

                                                        <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonDisabledBackgroundThemeBrush}"/>

                                                    </ObjectAnimationUsingKeyFrames>

                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Border">

                                                        <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonDisabledBorderThemeBrush}"/>

                                                    </ObjectAnimationUsingKeyFrames>

                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">

                                                        <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonDisabledForegroundThemeBrush}"/>

                                                    </ObjectAnimationUsingKeyFrames>

                                                </Storyboard>

                                            </VisualState>

                                        </VisualStateGroup>

                                        <VisualStateGroup x:Name="FocusStates">

                                            <VisualState x:Name="Focused">

                                                <Storyboard>

                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualWhite"/>

                                                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualBlack"/>

                                                </Storyboard>

                                            </VisualState>

                                            <VisualState x:Name="Unfocused"/>

                                            <VisualState x:Name="PointerFocused"/>

                                        </VisualStateGroup>

                                    </VisualStateManager.VisualStateGroups>

                                    <Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="3">

                                        <ContentPresenter x:Name="ContentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTransitions="{TemplateBinding ContentTransitions}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>

                                    </Border>

                                    <Rectangle x:Name="FocusVisualWhite" IsHitTestVisible="False" Opacity="0" StrokeDashOffset="1.5" StrokeEndLineCap="Square" Stroke="{StaticResource FocusVisualWhiteStrokeThemeBrush}" StrokeDashArray="1,1"/>

                                    <Rectangle x:Name="FocusVisualBlack" IsHitTestVisible="False" Opacity="0" StrokeDashOffset="0.5" StrokeEndLineCap="Square" Stroke="{StaticResource FocusVisualBlackStrokeThemeBrush}" StrokeDashArray="1,1"/>

                                </Grid>

                            </ControlTemplate>

                        </Setter.Value>

                    </Setter>

                </Style>

            </Button.Resources>

            <Button.Style>

                <StaticResource ResourceKey="ButtonStyle"/>

            </Button.Style>

        </Button>
    </StackPanel>
</UserControl>
